from . import db


class GoodsModel(db.Model):
    __tablename__ = "goods"
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    goods_name = db.Column(db.String(80), nullable=False)
    goods_id = db.Column(db.Integer, nullable=False)
    goods_price = db.Column(db.Float, nullable=False)
    inventory = db.Column("inventory", db.Integer, default=0)
